﻿
<%@ Page Language="C#" EnableEventValidation="false" MasterPageFile="~/ClinicalForms/ClinicalHomeHeaderFooter.master" AutoEventWireup="true" CodeFile="frmChildEnrolment.aspx.cs" Inherits="ClinicalForms_frmChildEnrolment" Title="Untitled Page" EnableViewState ="true"%>
<%@ MasterType VirtualPath="~/ClinicalForms/ClinicalHomeHeaderFooter.master" %>
<asp:Content ID="content1" ContentPlaceHolderID="ClinicalHome" Runat="Server">
<form id="frmChildEnrollment" method="post" runat="server">
    <div id="DivPMTCT" runat="server">
                <h1 class="margin">
                     Child Enrollment</h1>
                <div class="border center formbg">
                    <table cellspacing="6" cellpadding="0" width="100%" border="0">
                        <tbody>
                              <tr>
                                <td style="width: 500px" class="border pad5 whitebg">
                                    <label id="lblPName" class="required" for="patientname">
                                        *Patient Name:</label>
                                    <span id="FName" class="smallerlabel">First: </span>
                                    <asp:TextBox ID="TxtFirstName" runat="server"
                                        Width="118px" MaxLength="50" ontextchanged="TxtFirstName_TextChanged"></asp:TextBox>
                                    
                                    <span id="LName" class="smallerlabel">Last: </span>
                                    <asp:TextBox ID="TxtLastName" runat="server"
                                        Width="118px" MaxLength="50" ontextchanged="TxtLastName_TextChanged"></asp:TextBox>
                                </td>
                                <td class="border pad5 whitebg" width="50%">
                                    <label id="lblregistrationdate" class="required" for="RegistrationDate">
                                        *Registration Date:</label>
                                    <asp:TextBox ID="TxtRegistrationDate" runat="server" Width="25%" MaxLength="11"></asp:TextBox>
                                    <img onclick="w_displayDatePicker('<%= TxtRegistrationDate.ClientID %>');" height="22"
                                        alt="Date Helper" hspace="3" src="../images/cal_icon.gif" width="22" border="0" />
                                    <span class="smallerlabel">(DD-MMM-YYYY)</span>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 500px" class="border pad5 whitebg" nowrap>
                                    <label id="lblgender" class="required" for="gender">
                                        *Sex:</label>
                                    <asp:DropDownList ID="DDGender" runat="server" >
                                    <asp:ListItem Value="" Selected="True">-Select-</asp:ListItem>
                                    <asp:ListItem Value="16">Male</asp:ListItem>
                                    <asp:ListItem Value="17">Female</asp:ListItem>
                                    </asp:DropDownList>
                                    <label id="lblDOB" class="required margin15" for="DOB">
                                        *Date of Birth:</label>
                                    <asp:TextBox ID="TxtDOB" runat="server" Width="70px" MaxLength="11"></asp:TextBox>
                                    <img onclick="w_displayDatePicker('<%=TxtDOB.ClientID %>');" height="22" alt="Date Helper"
                                        hspace="3" src="../images/cal_icon.gif" width="20" border="0" />
                                    <span class="smallerlabel">DD-MMM-YYYY </span>
                                    
                                    <br />
                                    <br />
                                   
                                </td>
                                <td class="border pad5 whitebg" width="50%">
                                    <label id="Label1" class="required" for="RegistrationDate">
                                        *Admission No:</label>
                                    <asp:TextBox ID="TxtAdmissionNo" AutoPostBack="true" runat="server" Width="25%" MaxLength="11" 
                                        ontextchanged="TxtAdmissionNo_TextChanged"></asp:TextBox>
                                    
                                </td>
                                
                            </tr>
                           <tr>
                                <td>
                                    <table  cellpadding="0"width="100%x" border="0">
                                        <tr >
                                            <td  align="right" >
                                                <asp:Button ID="btnAdd" Text="Add Child" runat="server" onclick="btnAdd_Click1"  ></asp:Button>
                                            </td>
                                        </tr>
                                    </table>
                                  </td>
                            </tr>
                      
                   
                    <tr>
                        <td class="center">
                        </td>
                    </tr>
                                   
                    <tr >
                        <td class="whitebg border" valign="top" colspan="2">
                           <div  id="div-gridview" class="GridView whitebg">
                                <asp:GridView ID="grdChildInfo" runat="server" EnableViewState="true" Width="100%"
                                    BorderColor="#666699"  AutoGenerateColumns="False" CellSpacing="1"
                                    AllowSorting="True" OnRowDataBound="grdChildInfo_RowDataBound" 
                                    onsorting="grdChildInfo_Sorting" onrowdeleting="grdChildInfo_RowDeleting" 
                                    OnSelectedIndexChanging="grdChildInfo_SelectedIndexChanging" 
                                    onrowcommand="grdChildInfo_RowCommand" >
                                   
                                    <HeaderStyle CssClass="tableheaderstyle" HorizontalAlign="Center"></HeaderStyle>
                                    <AlternatingRowStyle BackColor="White" BorderColor="Silver" />
                                    <Columns>
                                        <asp:BoundField headertext="First Name" datafield="FirstName" 
                                            itemstyle-horizontalalign="Center" ReadOnly="true" HeaderStyle-Font-Bold="true"  
                                            HeaderStyle-Font-Underline="true" HeaderStyle-ForeColor="Blue">
<HeaderStyle Font-Bold="True" Font-Underline="True" ForeColor="Blue"></HeaderStyle>

<ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField headertext="Middle Name" datafield="MiddleName" 
                                            itemstyle-horizontalalign="Center" ReadOnly="true" HeaderStyle-Font-Bold="true"  
                                            HeaderStyle-Font-Underline="true" HeaderStyle-ForeColor="Blue" Visible="false">
<HeaderStyle Font-Bold="True" Font-Underline="True" ForeColor="Blue"></HeaderStyle>

<ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField headertext="Last Name" datafield="LastName" 
                                            itemstyle-horizontalalign="Center" ReadOnly="true" HeaderStyle-Font-Bold="true"  
                                            HeaderStyle-Font-Underline="true" HeaderStyle-ForeColor="Blue">
<HeaderStyle Font-Bold="True" Font-Underline="True" ForeColor="Blue"></HeaderStyle>

<ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField headertext="Registration Date" datafield="RegistrationDate" 
                                            itemstyle-horizontalalign="Center" ReadOnly="true" HeaderStyle-Font-Bold="true"  
                                            HeaderStyle-Font-Underline="true" HeaderStyle-ForeColor="Blue">
<HeaderStyle Font-Bold="True" Font-Underline="True" ForeColor="Blue"></HeaderStyle>

<ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField headertext="Sex" datafield="Sex" 
                                            itemstyle-horizontalalign="Center" ReadOnly="true" HeaderStyle-Font-Bold="true"  
                                            HeaderStyle-Font-Underline="true" HeaderStyle-ForeColor="Blue">
<HeaderStyle Font-Bold="True" Font-Underline="True" ForeColor="Blue"></HeaderStyle>

<ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField headertext="DOB" datafield="DOB" 
                                            itemstyle-horizontalalign="Center" ReadOnly="true" HeaderStyle-Font-Bold="true"  
                                            HeaderStyle-Font-Underline="true" HeaderStyle-ForeColor="Blue">
<HeaderStyle Font-Bold="True" Font-Underline="True" ForeColor="Blue"></HeaderStyle>

<ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField headertext="Admission No" datafield="AdmissionNumber" 
                                            itemstyle-horizontalalign="Center" ReadOnly="true" HeaderStyle-Font-Bold="true"  
                                            HeaderStyle-Font-Underline="true" HeaderStyle-ForeColor="Blue">
<HeaderStyle Font-Bold="True" Font-Underline="True" ForeColor="Blue"></HeaderStyle>

<ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField headertext="Delete" datafield="Id" 
                                            itemstyle-horizontalalign="Center" ReadOnly="false" ItemStyle-Width ="0%" 
                                            HeaderStyle-Font-Bold="true"  HeaderStyle-Font-Underline="true" 
                                            HeaderStyle-ForeColor="Blue" Visible="true">
<HeaderStyle Font-Bold="True" Font-Underline="True" ForeColor="Blue" ></HeaderStyle>

<ItemStyle HorizontalAlign="Center" Width="0%" ></ItemStyle>
                                        </asp:BoundField>
                                   


<asp:CommandField ButtonType="Link" DeleteText="<img src='../Images/del.gif' alt='Delete this' border='0' />"
ShowDeleteButton="true"  />
<asp:TemplateField> 
<ItemTemplate> 
<asp:LinkButton CommandName="cmdBind" runat="server"  ID="LbGridChildEnrol">Show</asp:LinkButton> 
</ItemTemplate> 
</asp:TemplateField> 

                                        
                                    </Columns>
                                </asp:GridView>
                            </div>
                        </td>
                     </tr> 
                  </tbody>   
                </div>
             
                   
                        
                   
                
                
                
                <div class="border center formbg">
                    <table cellspacing="6" cellpadding="0" width="100%">
                        <tbody>
                            <tr>
                                  <asp:TextBox ID="txtSysDate" runat="server" CssClass="textstylehidden"></asp:TextBox>
                                  <td align="center">
                                    <asp:Button ID="btnsave" Text="Save" runat="server" onclick="btnsave_Click" ></asp:Button>
                                    <asp:Button ID="btnCancel" Text="Close" runat="server" onclick="btnCancel_Click" ></asp:Button>
                                    
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
               
              
                
            </div>


  </form>
</asp:Content>





